package com.iam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author liyong
 * @since 2021-05-10
 */
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色表，使用domain对角色进行细化。比如该项目经理不是其项目的项目经理
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private String domain;

    private String des;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name=" + name +
                ", domain=" + domain +
                ", des=" + des +
                "}";
    }
}
